Repository navigation
fix(web): deleting a thread with its threads no longer wipes a child the server keeps - #1051
Merged
Merged
Conversation
…the server keeps The client stopped each child it counted, deleted its terminal history and cleared its draft before and after sending the delete. A child that left the family in the meantime survives on the server but lost that work. The server already cleans up every thread it deletes (ThreadDeletionReactor) and clients forget each one when its removal arrives, so the client now winds down only the thread the user named.
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Deleting a parent with "Also delete its N threads" ticked made the client stop each child it counted, delete that child's terminal history, and clear its draft. It did this from a list it read before sending the delete. If a child left the family in between (separated from another device or by the agent, or archived on its own), the server kept that child, but the child had already lost its terminal history and draft.
The client now winds down only the thread the user named. Each child the server actually deletes is already cleaned up from its own
thread.deletedevent:ThreadDeletionReactorstops its runtime and deletes its terminal history, and every client drops its draft and terminal state when the removal comes in. The counted list now only decides the number in the dialog and where to navigate. Nothing on the wire changed, so older servers and phones keep working.A new sidebar browser test deletes a parent with its threads while the child stays on the server, and checks that the child's session isn't stopped, its terminal isn't closed, and its draft is still there. It fails on main.